import responsibility.chain.FilterChain;
import responsibility.filter.AddressFilter;
import responsibility.filter.PortFilter;
import responsibility.http.Request;
import responsibility.http.Respones;
import responsibility.processor.FileterProcessor;

public class Main {

    public static void main(String[] args) {

        Request request = new Request("192.168.1.123","8080","客户端 请求 ");
        Respones respones = new Respones("192.168.1.123","8080","客户端 响应 ");
        FilterChain fc = new FilterChain();
        fc.addFilter(new AddressFilter()).addFilter(new PortFilter());

        FileterProcessor fileterProcessor = new FileterProcessor();
        fileterProcessor.doProcessor(request,respones,fc);
    }
}
